{ config, lib, pkgs, ... }:
{
    imports = [
        #./boot.nix
        ./grub.nix
    ];
    boot = {
      # 启动动画
      plymouth.enable = true;

      enableContainers = false;
      # 可以使用latest、zen、xanmod等定制内核（linuxPackages_xanmod）
      kernelPackages = pkgs.linuxPackages_xanmod;
      kernel.sysctl = {
        "vm.swappiness" = 100;
        "vm.max_map_count" = 2147483642;
      };
      supportedFilesystems = lib.mkForce [ "btrfs" "vfat" "ntfs" "xfs" ];
      loader.efi = {
        canTouchEfiVariables = true;
        efiSysMountPoint = "/boot";
      };
    };
}
